<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JS在标签中的使用</title>
</head>
<body>
<input type="button" value="点我" onclick="javascript:alert('hello')"/>
</body>
</html>